package org.socialnetwork.app;

import org.abac4j.context.AbacContext;
import org.socialnetwork.pojo.Usuario;
import org.socialnetwork.service.PhotoService;

public class ClassificacaoEtaria {
	private Usuario theOtherPerson = new Usuario();
	
	public ClassificacaoEtaria() {
		Usuario theOtherPerson = new Usuario();
		theOtherPerson.setUserId(1);
		theOtherPerson.setAge(18);		
	}
	
	public void execute() throws Exception {
		Usuario me = new Usuario();
		me.setUserId(2);
		me.setAge(15);
		
		PhotoService service = AbacContext.createSafeObject(new PhotoService());
		System.out.println( service.getUserPictures(theOtherPerson, me) );
	}
	
	public static void main(String[] args) throws Exception {
		new ClassificacaoEtaria().execute();
	}
}